/**
 * These tests will fail in IE6/IE7/IE8.
 */

TESTCASE(testFunctionName);
function testFunctionName() {
  assertEquals( "testFunctionName", testFunctionName.name );
  assertEquals( "testFunctionName", arguments.callee.name );
}

(
/**
 * This function is inside parentheses.
 * It will not define a function, except in IE6/IE7/IE8.
 */
function FunctionTest2_asExpression() {
}
)

TESTCASE(testFunctionDefinition);
function testFunctionDefinition() {
  assertEquals( "undefined", typeof FunctionTest2_asExpression );
}

//---------------------------------------------------------------------------
if ("function" == typeof allTestsLocalRunner) allTestsLocalRunner();
